package vashion.azeroth.core.personal.pojo;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnore;

import vashion.azeroth.core.pojo.BaseObject;

public class PersonalInviteCode extends BaseObject {

	private static final long serialVersionUID = -905363542304707515L;

	private Long memberId;

    private String memberName;

    private String code;

    private Integer status;

    private String useMemberName;

    private Date timeAdd;

    @JsonIgnore
    private Date timeEdit;

    private Date timeUsed;

    @JsonIgnore
    private String remark;

	private Long inviteCodeId;
    
    public String getStatusConvert() {
    	if(status == 0) {
    		return "未使用";
    	} else if(status == 1) {
    		return "已使用";
    	} else if(status == 2) {
    		return "已冻结";
    	} else {
    		return "";
    	}
    }

    public Long getMemberId() {
		return memberId;
	}


	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}


	public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUseMemberName() {
        return useMemberName;
    }

    public void setUseMemberName(String useMemberName) {
        this.useMemberName = useMemberName;
    }

    public Date getTimeAdd() {
        return timeAdd;
    }

    public void setTimeAdd(Date timeAdd) {
        this.timeAdd = timeAdd;
    }

    public Date getTimeEdit() {
        return timeEdit;
    }

    public void setTimeEdit(Date timeEdit) {
        this.timeEdit = timeEdit;
    }

    public Date getTimeUsed() {
        return timeUsed;
    }

    public void setTimeUsed(Date timeUsed) {
        this.timeUsed = timeUsed;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

	public Long getInviteCodeId() {
		return inviteCodeId;
	}

	public void setInviteCodeId(Long inviteCodeId) {
		this.inviteCodeId = inviteCodeId;
	}
    
}